﻿using baroIstatistik.Class;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace baroIstatistik
{
    public partial class uye_ekle : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void uyeekle_Click(object sender, EventArgs e)
        {

            try
            {

            user u = new user();

            u.Username = txtUsername.Text;
            u.Name = txtIsim.Text;
            u.Surname = txtSoyad.Text;
            u.Pass = sifre.Text;
            u.Regdate = dateunit.sadecetarih();
            u.ekle();

            Response.Redirect("basarili.aspx?mes=1");
            }
            catch (Exception)
            {

            }
        }
    }
}